package com.turkcell.dv.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "P_PROCESS_ENDPOINT")
public class ProcessEndpointDOM implements java.io.Serializable {

	private static final long serialVersionUID = 7764416528673163495L;
	private Long id;
	private String endpoint;
	private Long processId;

	public ProcessEndpointDOM() {
	}

	@Id
	@Column(name = "ID", unique = true, nullable = false, precision = 5, scale = 0)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Long getId() {
		return this.id;
	}
	
	public void setId(Long id) {
		this.id = id;
	}
	
	@Column(name = "ENDPOINT_URL", nullable = false, length = 45)
	public String getEndpoint() {
		return this.endpoint;
	}
	
	public void setEndpoint(String endpoint) {
		this.endpoint = endpoint;
	}

	@Column(name = "PROCESS_ID", nullable = false)
	public Long getProcessId() {
		return this.processId;
	}

	public void setProcessId(Long processId) {
		this.processId = processId;
	}

	@Override
	public String toString() {
		return "id=" + id + ", endpoint=" + endpoint + ", processId=" + processId;
	}

}